package listtest;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-08-04
 * Time: 15:03
 */
public class Test {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
    }

    public static void main2(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(12);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);


        System.out.println(myArrayList.get(2));
    /*    myArrayList.add(2,5);
        myArrayList.add(8,5);*/

        /*myArrayList.display();*/
    }


    public static void main1(String[] args) {
        MyArrayList myArrayList = new MyArrayList();

        IList iList = new MyArrayList();

        System.out.println(iList.size());
        System.out.println(myArrayList.size());

        iList.display();
        myArrayList.display();
    }
}
